package com.example.template.commontable.service.impl;



import com.example.template.commontable.entity.CommonTable;
import com.example.template.commontable.mapper.CommonTableMapper;
import com.example.template.core.service.impl.MyBatisBaseServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.LinkedHashMap;
import java.util.List;

/**
*
* @author meko .
* @date 2019/11/28 09-11-18.
*/
@Service
public class CommonTableServiceImpl extends MyBatisBaseServiceImpl<CommonTable>{

    @Resource
    private CommonTableMapper commonTableMapper;


    @Override
    public List<CommonTable> selectAll(CommonTable commonTable, Integer page, Integer size) {
        return commonTableMapper.selectAllTable();
    }

    public List<LinkedHashMap> selectColumnData(String tableName) {
        return commonTableMapper.selectColumnData(tableName);
    }
}
